package com.vehicle.pojo;

import com.alibaba.fastjson.annotation.JSONField;
import com.vehicle.bean.PageVo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 保险记录表
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class InsuranceRecord extends PageVo {
    private Integer insuranceid;//保险记录id
    private Car car;//车辆id 外键 关联
    @JSONField(format = "yyyy-MM-dd")
    private Date insurance_starttime;//保险起始时间
    private Insurance insurance;//保险种类id  外键 关联
    private Double insuranceprice;//保险金额
    private Btype btype; //往来单位id 外键 关联
    @JSONField(format = "yyyy-MM-dd")
    private Date insurance_endtime;//保险结束时间
    private Driver driver;//驾驶员id 外键 需要关联
    private String remark;//备注
}
